• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Navigationview and framelayout problem

i'm trying to set a layout for tablet for an app that has a drawerview and framelayout
but i'm getting some issues
toolbar is overlaped by statubar and the statutbar color on navigationview is different from the one in framelayout

this my layout code for tablets
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">
    <android.support.design.widget.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        app:headerLayout="@layout/nav_header"
        app:menu="@menu/nav_menu" />
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <android.support.design.widget.AppBarLayout
            android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            android:id="@+id/toolbar_layout"
            app:elevation="0dp">
            <include
                android:id="@+id/toolbar"
                layout="@layout/ToolBar"
                app:layout_scrollFlags="scroll|snap" />
        </android.support.design.widget.AppBarLayout>
        <FrameLayout
            android:id="@+id/ContentFrame"
            android:layout_below="@id/toolbar_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
    </RelativeLayout>
</LinearLayout>

the output in the attached image



Attachments

  • Screenshot_1572893827.png
    Screenshot_1572893827.png
    41.5 KB · Views: 100

Apps How can I create an App like Appblock or Forest?

I'm currently using Android Studio to create an App.
I want one of the features to block apps, after you activate this by clicking on a button.

So that the app moves in the background, after clicking the button and when you open for example Youtube, it pops up and says something like: "Deactivate this program first".

The basic idea is of course a Clicklistener on this button to start the program
But know I want to know, which commmand you have to use so that the app is permanently supervising, which app you are opening/ have openend, even though the app moved to the background.
Some kind of Clicklistener for this (in the example:Youtube) exact app.

I'm fairly new to App programming :)
Thanks in advance.

Example Apps
https://www.forestapp.cc/
https://www.appblock.app/

Phone keeps making new folders and shortcuts

I gave my mother my old note 5 (good phone) and now have a note 8 and am waiting for my note 10 plus to arrive.

Anyway, back to my mum. She loves the phone with a passion but she is always doing things to it then wants me to sort it out. I barely know the basics.

Anyway the latest is that she wiped her contacts. I managed to restore about 30 out of 100 odd and told her she would have to go through texts to get the rest, but when doing that I noticed that she has probably 20 to 30 folders on her pages each with a couple of apps in them, and some apps are in folders 2 or 3 times and in multiple folders. One video app was on her home screen about 9 times, the calculator app was up 3 times and so on. As I said to her, it looks like a teenager's bedroom.

Can someone help me to clean that up, essentially remove duplicates of apps without deleting the app itself and get rid of the folders.

Any help much appreciated!

A Friendly Reminder to Buy Secondhand

Just got a heavily used Dell Optiplex 790 for parts from my university for scrap value. Threw in a hard drive and some RAM, and it ended up working very well. It came with an i5 2400, which is pretty slow by today's standards, but for a basic computer it's not bad at all, especially with Linux. After opening up the side once more to upgrade to a better CPU from the 2nd gen era, I found out this could be the most secure computer I've ever owned.

For those of you unaware, every Intel computer made after 2008 basically has a backdoor in it called the Intel Management Engine. This is meant to give enterprise administrators low level root access to computers remotely, but in recent years more and more vulnerabilities are being discovered that could mean attackers are able to break into Intel ME enabled computers and wreak havok. Because Intel ME works on such a low level with the BIOS, its privilege level is dangerously high. Intel ME exploits can affect any computer, with any OS.

Dell does deals with certain enterprises and government agencies to disable these management engines from the factory, and ONLY enterprises and governments get access to this option according to my research. End users that get Dell products either have to go through very risky BIOS modifications to disable it, or they have to shut up and deal with it. Because this computer was initially bought from Dell by my university, they got access to this feature upon purchase and chose to take advantage of it. Because I now bought it off of my university as surplus, that security feature was unintentionally passed onto me, part of the "unwashed masses" not worthy of such a feature. No risky BIOS mods for me, I get all the security I need right out of the box. Not to mention, a pretty decent computer despite its age.

Granted, I'll still have to deal with Meltdown and Spectre, but as far as I'm aware supposedly the Ubuntu kernel itself takes care of 90% of those vulnerabilites so I'll be okay.

Image attached of the factory tag so you know I'm not lying

Attachments

  • IMG_20191104_213753_280.jpg
    IMG_20191104_213753_280.jpg
    1.1 MB · Views: 405

Happy 1st Birthday OnePlus 6T!

rcNed9rm.jpg


BIRTHDAY FUN FACT & QUESTION! :D

Since the Global model of the OnePlus 6T is almost 1 year old, it was launched the 6th November 2018, it has received...

13 Official stock, stable, OxygenOS updates covering Android 9 & 10.

18 Open Beta test firmware updates covering Android 9 & 10.

31 updates in total for the OnePlus 6T in a year.

Question: Can anyone supply any other phone manufacturer's model of phone other than, obviously, the stock Google vanilla, Pixel and Essential phones, to have received as many or more updates than this in a year?

Rules: Just reply to this post with the Manufacturer's name, phone model and a link to the confirmed number of updates. ;)

( Caveat: The above does not include the 10 updates for the T-Mobile (USA) 6T carrier minority variant or the 3 Android Q Developer Previews) :)

When is NFC activated?

I have seen several times the NFC feature activated on my Galaxy S8, without me turning it on. Could you please help me to understand how it gets turned on? I also see several activities on my Google Activity related to the NFC, but I don't use it, so I don't really understand why it is there... Thanks in advance for your help.

Audio text message

I noticed the audio text message icon a while back . Kind of cool. I dont recall the phone coming with that. May have came with an update.

I noticed while I was away from wifi, the audio text icon disappeared in the conversion I had just used it on. It reappeared, it seems, when I got back to home wifi.

It kind of makes sense a feature would be able to be turned off when away from wifi, but I cant find a setting for the feature that allows me to tell it to always be available and or OK to use data.

Anyone know anything about this feature and its behavior?

Apps How to add local map in android webview

Hi, I have a question and I need a little guid to achive this task simply I want to add a local map in my android webview and I want to access all the features of that URL (Example: In this URL there is a option of show my current location and so on) I've no API keys of that server. I just add a simple webview and load that URL it's working little fine shows location and route but I am not able to access these features like show my current location and select destination then it's show my the route that how much I far away from my destination like Google Map. Please help. Thanks

adb screenrecord size option not working as expected

It's noticed that 'adb screenrecord --size RESOLUTION' not working as expected. It always takes the physical resolution instead of the given resolution. Is this a bug from device or adb?
Example:
run 'adb shell wm size'
Physical size: 1440x2960
Override size: 1080x2220

Then run:
'adb shell screenrecord /sdcard/demo.mp4 --size 1080x2220'

->
The recorded video has 1440x2960 resolution, and the captured screen is 1080x2220. I expect the video itself has 1080x2220 resolution, then the video could look like 'full screen'.

Whether this is a known issue or I understand it incorrectly?

Filter

Back
Top Bottom