[英]how to create custom UI like evernote help in android
我正在嘗試創建類似於evernote幫助android應用程序的自定義UI。 據我了解,首先我必須創建一個自定義Textview,但是我無法創建黑色濾鏡。
我想在原始活動上方進行新的幫助活動(或繪制視圖),如上圖所示。
我的布局上有圖像和文字覆蓋。 我知道這是一個基本問題,但是由於我是android開發的初學者,因此我正面臨這個問題。 請幫助我了解如何進行此操作。
對不起,我的英語不好。
要使幫助活動透明,請先在valuse的styles.xml
文件中使用
<style name="AppTheme" parent="android:Theme.Light" />
<style name="Theme.Transparent" parent="android:Theme">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">false</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
然后在清單文件中進行創建,使其成為您的幫助活動的主題
<activity
android:name=".Help"
android:theme="@style/Theme.Transparent"
android:screenOrientation="portrait"></activity>
現在,在幫助活動中,您的上一個活動將顯示。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.