Statusbar Speed Indicator - Xiaomi Poco F1 Questions & Answers

I wanted to have network speed indicator besides the Time on the Statusbar. There seems enough space to accomodate the speed indicator.
I have found network_speed_view code in 3 places in the miuisystemui.apk.
I) layout/system_icons.xml:
<com.android.systemui.statusbar.NetworkSpeedView android:textAppearance="@style/TextAppearance.StatusBar.Carrier" android:gravity="end|center" android:id="@id/network_speed_view" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
II) values/ids.xml:
<item type="id" name="network_speed_view">false</item>
III) public.xml:
<public type="id" name="network_speed_view" id="0x7f0a01b4" />
Is there any way to edit miuisystemui.apk to show it on statusbar? Can anyone guide me on this?
I am on Poco F1 MiUi 10 8.10.18 Beta.

Related

Sense hiding some apps?

I've installed ADW launcher to see if it yields better battery life.. it will take a while to figure that out since daily use varies from day to day.
However, I noticed that ADW drawer has few more apps than Sense does.
Following apps were in ADW's All Apps drawer, and are not in default drawer, driven by HTC Sense:
Camcoder
Car panel
Dock mode
Mirror
Quick lookup
I assume that Car panel launches itself if we have proper accessory; but I find it useful even without it.
I don't see way to add shortcuts for these when HTC Sense is set to default launcher.
ADW, Go Launcher, ETC have their own app icon packs that just pull up whatever app you have installed. The phone already has a camcorder built into the camera app, which IMO is better because who needs the clutter of 2 when it is as simple as 1 touch to alternate between the 2. Car Dock opens in the dock, no need for an app unless yours isn't launching, etc...
I have the same issue when using go launcher. There's sokebapps that won't show up in go launcher no matter what. Guayaquil are still installed but only show in the sense launcher. You can make shortcuts on the homescreeens to the hidden apps but that's kinda akward.
Anyone have any ideas why its doing this?
Sent from my ADR6425LVW using XDA App
The launchers have not yet been adapted to this phone yet. The launchers are probably looking for APK's that don't exist, so they don't overlay the app icons over the ones that are actually there.
I personally just like using Launcher Pro. I have the screen completely icon/widget free except for the drawers at the bottom. Very minimal & even when we get ICS I'll still use it.
mirror would be a pretty cool app...unless all it is is the camera app with the front facing camera on?? lol
i'm still wondering how the HELL to just have a shortcut for facebook chat so i don't have to use the damn widget, and so i don't have to download the facebook messenger app.......if you use the widget, it opens up an app......but you can't open the app unless you have the widget out. other sense 3.5 phones had the fb chat shortcut in the app drawer, but this doesn't.
postmortem. said:
I've installed ADW launcher to see if it yields better battery life.. it will take a while to figure that out since daily use varies from day to day.
However, I noticed that ADW drawer has few more apps than Sense does.
Following apps were in ADW's All Apps drawer, and are not in default drawer, driven by HTC Sense:
Camcoder
Car panel
Dock mode
Mirror
Quick lookup
I assume that Car panel launches itself if we have proper accessory; but I find it useful even without it.
I don't see way to add shortcuts for these when HTC Sense is set to default launcher.
Click to expand...
Click to collapse
Yes, sense has the ability to hide what its told to hide. IN side of /system/customize/MNS/ there is a file called Default XML. It sets up a lot of Sense options and has the following code to hide those lines:
<function name="applications_hide">
<set name="plenty" max="7">
<item name="package">com.htc.HtcNaviPanel</item>
<item name="class">com.htc.HtcNaviPanel.CarDockActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.htccontacts</item>
<item name="class">com.android.htccontacts.ViewCallHistory</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.dockmode</item>
<item name="class">com.htc.dockmode.DeskDockActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.htctwitter</item>
<item name="class">com.htc.htctwitter.TwidroidSplash</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.android.quicklookup</item>
<item name="class">com.htc.android.quicklookup.QuickLookupTabControl</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.stock</item>
<item name="class">com.htc.stock.ui.HomeActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.CamcorderEntry</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.connectedMedia</item>
<item name="class">com.htc.connectedMedia.ConnectedMedia</item>
</set>
<set name="plenty" max="7">
<item name="package">com.adobe.reader</item>
<item name="class">com.adobe.reader.AdobeReader</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.MirrorEntry</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.htccontacts</item>
<item name="class">com.android.htccontacts.DialerTabActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.stk</item>
<item name="class">com.android.stk.StkLauncherActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.facebookchat</item>
<item name="class">com.htc.facebookchat.app.FacebookChatSwitchActivity</item>
</set>
</function>
Click to expand...
Click to collapse
To restore which function you want its as simple as remove the appropriate lines (Need custom ROM or S-OFF / ROOT). The first iteration of Evo 3D ROMS (1.x) had the mirror in the launcher. The second iteration (2.x) hid the Mirror. Why? IDK. They just did. Thats how I learned about the hidden apps in Sense.
Hope that sheds some light on it for you.
Ha! And there's facebook chat app. Crazy stuff man..why do they hide it?
Sent from my ADR6425LVW using XDA App
jayochs said:
Ha! And there's facebook chat app. Crazy stuff man..why do they hide it?
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
Because there is so much damn bloatware on it to begin with? Hell if I know, lol
jayochs said:
Ha! And there's facebook chat app. Crazy stuff man..why do they hide it?
Click to expand...
Click to collapse
Probably because the design team for this phone looked at user interaction models based on data collected over time about which apps were launched from widgets and which were launched by icons, and found that fewer people used the app the way you want to.
this is what I'm removing to hopefully show the mirror app in the drawer;
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.MirrorEntry</item>
</set>
<set name="plenty" max="7">
But it still doesn't. Any ideas?
Thanks.
Sent from my ADR6425LVW using Tapatalk
scrosler said:
To restore which function you want its as simple as remove the appropriate lines (Need custom ROM or S-OFF / ROOT).
Click to expand...
Click to collapse
I pulled my xml file removed:
<set name="plenty" max="7">
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.CamcorderEntry</item>
</set>
Then replaced it, rebooted and still doesn't show. What am I missing?
I'm running 1.1 btw
Nothing on this???

[Solved] Icon Package: Links for replacement are wrong.

Edit: SOLVED by searching others' appfilters.
Hi!
I have a Nexus 10, and love it. There are, however, a few things that annoy me more or less, but none of them is caused by Google or Samsung. The device is awesome. It's just that the app drawer contains many 3rd party app icons that were created before the high-res times.
Since the app drawer is a rather central thing to Android, I decided to do something about it.
I'm a total noob, so I thought that creating a theme all by myself would be too much of an effort - I decided to modify an existing package instead. I took this icon package, appended it, and used it with Nova Launcher: http://forum.xda-developers.com/showthread.php?t=2053625
This is what I did:
Added a 144x144 PNG icon to res/drawable-xxhdpi for each app.
Added lines of code to res/xml/appfilter.xml, which you can see below. Within ComponentInfo{} I wrote the APK name first, then a slash, and then the activity that is shown by the Nova activity widget activity chooser.
About 95% of the replacements worked fine, one example would be this:
Code:
<item component="ComponentInfo{com.sand.airdroid/com.sand.airdroid.Splash}" drawable="airdroid" />
These are the lines that did not work:
Code:
<item component="ComponentInfo{org.ebookdroid/ui.library.RecentActivity}" drawable="books" />
<item component="ComponentInfo{gpc.myweb.hinet.net.PopupWeb/PopupWeb_Browser}" drawable="browser" />
<item component="ComponentInfo{com.android.calculator2/Calculator}" drawable="calc" />
<item component="ComponentInfo{com.google.android.diskusage/SelectActivity}" drawable="disk" />
<item component="ComponentInfo{com.inisoft.mediaplayer.a/tivity.MainActivity}" drawable="dice" />
<item component="ComponentInfo{com.ivona.tts/WelcomeActivity}" drawable="ivts" />
<item component="ComponentInfo{com.bel.android.dspmanager/activity.DSPManager}" drawable="dsp" />
Can help me with this?
(The items that do not work are: EBookDroid, Floating Browser, (Stock Calculator), DiskUsage, Dice Player, Ivona TTS (Engine), Mantano Reader, DSP Manager.
Cheers
ping
Edit: FYI
The corrected lines
Code:
<item component="ComponentInfo{org.ebookdroid/org.ebookdroid.ui.library.RecentActivity}" drawable="books" />
<item component="ComponentInfo{gpc.myweb.hinet.net.PopupWeb/gpc.myweb.hinet.net.PopupWeb.PopupWeb_Default}" drawable="browser" />
<item component="ComponentInfo{com.android.calculator2/com.android.calculator2.Calculator}" drawable="calc" />
<item component="ComponentInfo{com.google.android.diskusage/com.google.android.diskusage.SelectActivity}" drawable="disk" />
<item component="ComponentInfo{com.inisoft.mediaplayer.a/com.inisoft.mediaplayer.a.SplashActivity}" drawable="dice" />
<item component="ComponentInfo{com.ivona.tts/com.ivona.tts.WelcomeActivity}" drawable="ivts" />
<item component="ComponentInfo{com.bel.android.dspmanager/com.bel.android.dspmanager.activity.DSPManager}" drawable="dsp" />

[Q] change Apk Background Problem

Hello to all of you
First, I want to say my English sucks... sor....
I want to ask you some problem
I want change my settings's background.
it's style.xml backgrounds reference framework-res Theme
but I don't want change theme default background
because other apk also reference this theme
I want only change settings background
who can help me...
and can i do this? I edit settings style.xml Red lines are my edits
</style>
<style name="Theme.Holo" parent="@*android:style/Theme.DeviceDefault.Light" />
<item name="windowbackground">@*android:drawable/senc_myimg</item>
<style name="Theme.Holo.NoActionBar" parent="@*android:style/Theme.DeviceDefault.Light.NoActionBar" />
<style name="Theme.Holo.Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
<style name="Theme.Holo.DialogWhenLarge" parent="@*android:style/Theme.DeviceDefault.Light.DialogWhenLarge">
<item name="android:directionality">true</item>
The last question @drawable/XXXXX AND @*drawable/xxxxx OR @*/@android:drawble/xxxx Difference

change Apk Background Problem.. HELP!

Hello to all of you
First, I want to say my English sucks... sor....
I want to ask you some problem
I want change my settings's background.
it's style.xml backgrounds reference framework-res Theme
but I don't want change theme default background
because other apk also reference this theme
I want only change settings background
who can help me...
and can i do this? I edit settings style.xml Red lines are my edits
</style>
<style name="Theme.Holo" parent="@*android:style/Theme.DeviceDefault.Light" />
<item name="windowbackground">@*android:drawable/senc_myimg</item>
<style name="Theme.Holo.NoActionBar" parent="@*android:style/Theme.DeviceDefault.Light.NoActionBar" />
<style name="Theme.Holo.Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
<style name="Theme.Holo.DialogWhenLarge" parent="@*android:style/Theme.DeviceDefault.Light.DialogWhenLarge">
<item name="android:directionality">true</item>
The last question @drawable/XXXXX AND @*drawable/xxxxx OR @*/@android:drawble/xxxx Difference

duplicateParentState works on one nested View but not another

I have two LinearLayouts that are focusable. Both of their backgrounds are set to a selector that loads an image when they are focused. When they are not focused the background is set to transparent. These both work perfectly fine.
Nested in each of these LinearLayouts is an ImageView whose src attribute is set to a selector. This selector also is set to an image when it is focused, and is set to transparent when it is not focused. Both of the ImageViews have duplicateParentState="true". The ImageView in the 'first' LinearLayout works as intended. It shows the image when it is focused, and is transparent when it is not focused. However the 'second' LinearLayout's ImageView does not work. It remains transparent and doesn't load the image. It seems to never properly inherit the focused state from the LinearLayout.
I have another similar section in another part of the app that has 4 of these LinearLayouts with nested ImageViews that do the same thing. Even there, only the first one receives the focused state from the parent properly. All of the others do not.
LinearLayouts and ImageViews:
Code:
<LinearLayout
android:background="@drawable/background_selector"
android:focusable="true"
android:focusableInTouchMode="true">
<ImageView
android:src="@drawable/image_selector"
android:duplicateParentState="true"/>
</LinearLayout>
<LinearLayout
android:background="@drawable/background_selector"
android:focusable="true"
android:focusableInTouchMode="true">
<ImageView
android:src="@drawable/image_selector"
android:duplicateParentState="true"/>
</LinearLayout>
LinearLayout's background selector:
Code:
<selector xmlns:android="">
<item android:drawable="@drawable/background" android:state_focused="true" />
<item android:drawable="@android:color/transparent" />
</selector>
ImageView's src selector:
Code:
<selector xmlns:android="">
<item android:drawable="@drawable/image" android:state_focused="true" />
<item android:drawabe="@android:color/transparent" />
</selector>
The background attributes on the LinearLayouts work perfectly fine, but the src attribute on the ImageView only works on the top LinearLayout.

Categories

Resources