here is my test code:
The first child View
of a DrawerLayout
is the main content View
, and it will be laid out to fill the DrawerLayout
regardless of the layout attributes you set on it.
If you want your TextView
to be the size you set, you need to wrap it in another ViewGroup
that acts as the main content View
. For example: