Trying to build unofficial 15.1 - Motorola Droid RAZR

Right now, i'm trying to build los15.1, just for fun (i'm not using this smartphone at all, but i want to learn how to do a bring up, it's interesting). I've fixed about 11 compile time error (missing libs etc), but i have other, such as:
Code:
system/core/adb/daemon/main.cpp:113:59: error: use of undeclared identifier 'AID_UHID'
AID_NET_BW_STATS, AID_READPROC, AID_UHID};
^
system/core/adb/daemon/main.cpp:114:49: error: no matching function for call to 'ArraySizeHelper'
minijail_set_supplementary_gids(jail.get(), arraysize(groups), groups);
^~~~~~~~~~~~~~~~~
If someone knows how to fix it, let me know! Here's is my roomservice.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_motorola_maserati" path="device/motorola/maserati" remote="github" revision="refs/heads/cm-14.1" />
<project name="LineageOS/android_device_motorola_spyder" path="device/motorola/spyder" remote="github" revision="refs/heads/cm-14.1" />
<project name="LineageOS/android_device_motorola_umts_spyder" path="device/motorola/umts_spyder" remote="github" revision="refs/heads/cm-14.1" />
<project name="LineageOS/android_device_motorola_targa" path="device/motorola/targa" remote="github" revision="refs/heads/cm-14.1" />
<project name="Unlegacy-Android/android_kernel_ti_omap4" path="kernel/motorola/omap4-common" remote="github" revision="3.0/common" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="refs/heads/cm-14.1" />
<project name="Unlegacy-Android/proprietary_vendor_ti" path="vendor/ti" remote="github" revision="stable" />
<project name="Unlegacy-Android/android_hardware_ti_omap4" path="hardware/ti/omap4" remote="github" revision="stable" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="LineageOS/android_external_jhead" path="external/jhead" remote="github" revision="refs/heads/cm-14.1" />
<project name="LineageOS/android_device_motorola_omap4-common" path="device/motorola/omap4-common" remote="github" />
</manifest>

UPDATE:
I have compiled android 8 (thx to @stargo for the last patches) but i can't flash it without a new and updated recovery...i will let you know (if there's still someone with this device lol)

I have back-ported the kernel (binder, alarmtimer etc) with di help of @Tomoms . Then, i've reimplemented file-based flash and i've commented device and selinux assertion in updater-script (because they don't work on this old twrp with 8.0 rom). But there's something that i'm missing, because the rom won't boot, and it goes on AP fastboot (the new kernel works on los14.1, obv with CONFIG_ANDROID_BINDER_IPC_32BIT=y, while on los15.1 it must be on =n)
My sources: https://github.com/feduss/android_kernel_motorola_omap4-common

Sorry, but i failed and i give up for now....there are a lot of complex errors during boot process. I'm attaching here my manifests (you can find my changes in my git repos) and the log, in case somebody wants to give it a try.

远在中国的我表示很喜欢这个设备,现在它运行起来很慢,不过作为第二个设备很好值得研究,但是我更敬佩你对这个设备的支持与付出。我还是偶尔会上这论坛看看的。

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
昨天下班回家后刷机成功 超赞

fuyunji430 said:
View attachment 5150933View attachment 5150935View attachment 5150937View attachment 5150939View attachment 5150941View attachment 5150943
昨天下班回家后刷机成功 超赞
Click to expand...
Click to collapse
Hi! You are OT (the right topic is https://forum.xda-developers.com/t/rom-7-1-aosp-un-official-lineageos-14-1-nougat.3499342/page-16), but great ! I have done another build with 05/10/2020 (dd-MM-yyyy) security patches! I will upload it soon...so, subscribe to that topic

Related

[Q] About framework

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to change that yellow color to blue or other color ? I should edit or add any xml file on framework-re.apk ?
Please help me with this... I want to change the yellow color to cyan color...
Well, it is in an xml file. You'll first need to decompile the framework-res.apk then open the relevant xml file. Can't remember off hand what it's called, but it's something like horizontal_progress and vertical_progress, most probably in one of the layout folders. You'll then need to find the colour values and changes them to what you want.
Sorry, not been much help, but hope it gives you something to go on.
There is no landscape_progress and horizantal progress.. There is some xml files and there is preference.xml and preference_dialog.xml
preference.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<ImageView android:layout_gravity="center_vertical" android:background="@drawable/btn_circle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:src="@drawable/ic_btn_round_more"
xmlns:android="http://schemas.android.com/apk/res/android" />
preference_dialog.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/body" android:paddingLeft="8.0dip" android:paddingTop="10.0dip" android:paddingRight="8.0dip" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:baselineAligned="false">
<ProgressBar android:id="@id/progress" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="12.0dip" android:max="10000" style="@android:style/Widget.ProgressBar" />
<TextView android:layout_gravity="center_vertical" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</FrameLayout>
L0cke said:
Well, it is in an xml file. You'll first need to decompile the framework-res.apk then open the relevant xml file. Can't remember off hand what it's called, but it's something like horizontal_progress and vertical_progress, most probably in one of the layout folders. You'll then need to find the colour values and changes them to what you want.
Sorry, not been much help, but hope it gives you something to go on.
Click to expand...
Click to collapse
Can you remember the xml file name ?
Almost right.....
progress_horizontal.xml located in framework-res.apk/res/drawable/
use a hex colour chart to help you if you dont have any image editing software, here's an online chart
http://www.colorschemer.com/online.html
When editing the code you need to follow the ARGB layout:
A=Alpha(transparency/Opacity) 00=transparent ff=opaque
R=Red
G=Green
B=Blue
Edit the parts highlighted in red, there are 3 lines this is just one:
<gradient android:startColor="#50007fff" android:endColor="#80070274" android:angle="270.0" android:centerColor="#800018ff" />
Hope this helps, if you need any more find me over here-
http://forum.xda-developers.com/showthread.php?t=1433053

[How To][Guide] Fast Scene Recognition & Photostack On Stock Camera ICS

Hi guys ...
I shared a tutorial for you and is very easy to do
How to enable faster scane recognition :
Open Root Explorer go to the folder data> data> com.sonyericsson.android.camera> shared_prefs
open com.sonyericsson.android.camera.cameracapability_pref.xml
<map>
<int name="max_picture_width_1" value="640" />
<boolean name="scenerecognition_supported_0" value="true" />
<boolean name="scenerecognition_supported_1" value="false" />
<int name="max_picture_width_0" value="3264" />
</ map>
Set to
<boolean name="scenerecognition_supported_1" value="true" />
How to enable Photostack like this Screenshot :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open com.sonyericsson.android.camera.photostack_sharedprefs.xml
<map>
<boolean name="photostack_sharedprefs_open_state" value="false" />
</map>
Set to
<map>
<boolean name="photostack_sharedprefs_open_state" value="true" />
</map>
How to enable Photostack in Camera 3D Panorama :
Go to the folder data> data> com.sonyericsson.android.camera3d > shared_prefs
open com.sonyericsson.android.camera.photostack_sharedprefs
<map>
<boolean name="photostack_sharedprefs_open_state" value="false" />
</map>
Set to
<map>
<boolean name="photostack_sharedprefs_open_state" value="true" />
</map>
Thanks to iridaki for inspiration modify from folder data>data
INFO you can achieve the photostack manually thru the camera, just drag the photo to the left.
yes but it locked immediately upon opening the camera
By Rizal Lovins [email protected]"Love Indonesia"
Can this works with CM 10?
Sent from my Xperia Mini Pro using xda app-developers app
Ok, I tried it. I will have to play with it for some time to notice the difference. I will report my findings soon.
firda4415 said:
Can this works with CM 10?
Sent from my Xperia Mini Pro using xda app-developers app
Click to expand...
Click to collapse
No, because CM10 Not using Sony Camera
By Rizal Lovins [email protected]"Love Indonesia"
Update: Ok, after days of testing. I realized that the xml file goes back to its original settings even after you changing the lines and correcting its permission.
:good: job! trying now
is it cant to be applied on cm9 ?
SoloRazr said:
Ok, I tried it. I will have to play with it for some time to notice the difference. I will report my findings soon.
Click to expand...
Click to collapse
+1
Sent from my WT19i using Tapatalk 2

{request}(guide)how to add aosp lockscreen to stock ics

Kiikkkkkkkkkkkkkkk
I can post a link tomorrow. Or search the forum.
Kkkkkkkkkkkkkk
poria1999 said:
Thx bro...
I already searched the forum but I don't find any thing...
Click to expand...
Click to collapse
here --http://forum.xda-developers.com/showpost.php?p=42808283&postcount=3
There're easier mods with only one change out there afaik. Let's see...
http://forum.xda-developers.com/showthread.php?t=1731270
僕のLT18iから送られてきた
If you want to do it yourself, decompile framework-res.apk and make the following changes in the listed files:
/res/layout/keyguard_screen_tab_unlock.xml
Search for:
Code:
<com.android.internal.widget.SlidingTabSemc android:orientation="horizontal" android:id="@id/unlock_widget" android:tag="Portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" android:directionality="none" />
Replace with:
Code:
<com.android.internal.widget.multiwaveview.MultiWaveView android:orientation="horizontal" android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="60.0dip" android:horizontalOffset="0.0dip" />
/res/layout/keyguard_screen_tab_unlock_land.xml
Search for:
Code:
<com.android.internal.widget.SlidingTabSemc android:orientation="vertical" android:id="@id/unlock_widget" android:tag="Landscape" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" android:layout_rowSpan="7" android:directionality="none" />
Replace with:
Code:
<com.android.internal.widget.multiwaveview.MultiWaveView android:id="@id/unlock_widget" android:layout_width="200.0dip" android:layout_height="fill_parent" android:layout_rowSpan="7" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:topChevronDrawable="@drawable/ic_lockscreen_chevron_up" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="0.0dip" android:horizontalOffset="0.0dip" />
It works for me with the .587 framework and/or the modified Xperia Z framework from DdcCabuslay.
If you're still not sure, just refer to the link I gave you and follow the instructions.
僕のLT18iから送られてきた
Daniel D. said:
If you want to do it yourself, decompile framework-res.apk and make the following changes in the listed files:
/res/layout/keyguard_screen_tab_unlock.xml
Search for:
Code:
<com.android.internal.widget.SlidingTabSemc android:orientation="horizontal" android:id="@id/unlock_widget" android:tag="Portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" android:directionality="none" />
Replace with:
Code:
<com.android.internal.widget.multiwaveview.MultiWaveView android:orientation="horizontal" android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="60.0dip" android:horizontalOffset="0.0dip" />
/res/layout/keyguard_screen_tab_unlock_land.xml
Search for:
Code:
<com.android.internal.widget.SlidingTabSemc android:orientation="vertical" android:id="@id/unlock_widget" android:tag="Landscape" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" android:layout_rowSpan="7" android:directionality="none" />
Replace with:
Code:
<com.android.internal.widget.multiwaveview.MultiWaveView android:id="@id/unlock_widget" android:layout_width="200.0dip" android:layout_height="fill_parent" android:layout_rowSpan="7" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:topChevronDrawable="@drawable/ic_lockscreen_chevron_up" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="0.0dip" android:horizontalOffset="0.0dip" />
It works for me with the .587 framework and/or the modified Xperia Z framework from DdcCabuslay.
Click to expand...
Click to collapse
Thx works great...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
hi
i test this edu on 587 build ,
does that work fully on other ics build ??
RTD said:
hi
i test this edu on 587 build ,
does that work fully on other ics build ??
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1731270
I have the mod working on an older version of ICS.
僕のLT18iから送られてきた

How to make a Floating Statusbar Like a Phablet/Tablet

Hi mates I just want to share this guide of How to make a Floating Statusbar Like a Phablet/Tablet
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Original Thread
Hello, i just try to make my phone like a phablet/tablet with 4.0.4 or 4.1.2 android os last time, but i don't know i can make it a simple or not.
But now i can make it a "pop up manipulation" with some background manipulation too. So, here we go the tutorial will start now!
The first of this tutorial you must know about :
1. How to decompile/compile the apk file (don't ask here, you can search on google how to do that)
2. How to coding a xml file with some code
3. You must have a Apktool/ApkManager/ToolAlite by KuyaGaol
4. You must have a JDK and Latest Net framework for run Apktool/ApkManager/ToolAlite by KuyaGaol
5. You must take a beer! lol
Oke the first method is :
1. Download my Floating.zip
2. Pull the Framework-res.apk and SystemUI.apk
3. Do "if framework" on your Apktool/ApkManager/ToolAlite by KuyaGaol
4. Decompile SystemUI.apk
5. Extract my Floating.zip to your drawable directory. (you can extract on "drawable" or "drawable-mdpi" folder).
6. Open status_bar.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"
and add this line code :
Code:
android:background="@drawable/trans"
or paste my line :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="center" android:id="@id/date" android:background="@drawable/trans" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
7. Open status_bar_expanded.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical"
and add this line code :
Code:
android:background="@drawable/bg"
or paste my line :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:background="@drawable/bg" android:focusable="true" android:descendantFocusability="afterDescendants"
8. Open status_bar_tracking.xml from /res/layout/here and find this code. modify and save :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" />
and change to this line :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_weight="1.0" />
Find this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
and change to this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/trans" android:scaleType="fitXY" />
9. Recompile your SystemUI.apk project and push it to your phone to the /system/app directory
Thanks To :
- Rizalien
- Official Group Galaxy Young Indonesia
- Official Group Sony Xperia X8 Indonesia
- Tiny Anastasia Development Group
- DCSMS
@petrukgrinder
- and YOU!
Click to expand...
Click to collapse
markmellarpes said:
Hi mates I just want to share this guide of How to make a Floating Statusbar Like a Phablet/Tablet
Original Thread
Click to expand...
Click to collapse
contact mr mardon i think he may help you brother cos he has made transparency patches for his rom too

Help inserting clock into app

Hello. I was wondering if someone might be able to help me figure this out. I use a program called Channels DVR for TV / DVR. I wasn't happy with the stock color theme of purple, so I spent quite a bit of time decompiling the app, editing the color codes, and threw together a much more pleasant theme. Now I would like to change the app logo displayed at the top left to a clock. I have identified the code for the logo, and have been trying to hack around the textClock in, and just can't figure it out. I was wondering if someone smarter than me might help me out.
Here's a picture of the UI, what I'm trying to replace. The logo at the top left.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And here is the code for the sidebar on the left:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.getchannels.android.ui.SideBar android:background="@color/background" android:layout_width="@dimen/sidebar_closed_width" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/sidebar_guideline" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_begin="@dimen/sidebar_closed_width" />
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/sidebar_expanded_guideline" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_begin="@dimen/sidebar_open_width" />
<ImageView android:id="@id/sidebar_logo" android:layout_width="70.0dip" android:layout_height="42.0dip" android:layout_marginTop="35.0dip" android:src="@drawable/logo" android:adjustViewBounds="true" android:alpha="0.0" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/sidebar_expanded_guideline" app:layout_constraintTop_toTopOf="parent" />
<LinearLayout android:orientation="vertical" android:id="@id/sidebar_items" android:layout_width="0.0dip" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="@id/sidebar_expanded_guideline" app:layout_constraintTop_toTopOf="parent">
<include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" layout="@layout/sidebar_button" />
<include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" layout="@layout/sidebar_button" />
<include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" layout="@layout/sidebar_button" />
</LinearLayout>
<include android:id="@id/sidebar_btn_settings" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" layout="@layout/sidebar_button" /></com.getchannels.android.ui.SideBar>
This portion of code that is for the logo:
Code:
<ImageView android:id="@id/sidebar_logo" android:layout_width="70.0dip" android:layout_height="42.0dip" android:layout_marginTop="35.0dip" android:src="@drawable/logo" android:adjustViewBounds="true" android:alpha="0.0" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/sidebar_expanded_guideline" app:layout_constraintTop_toTopOf="parent" />
I've just been reading the examples for TextClock when I google 'TextClock Android', and trying to write something in, in place of the original code. The app just crashes shortly after launch so I'm obviously not making the correct changes.
Any ideas?
Have you placed some drawable resource for that logo in proper folders?
yes that logo is already present in the drawable folder from the original code. I'm trying to take out that line of code to display the logo and instead display a clock so I guess it wouldn't matter if that were there or not I'm going to leave it anyways because it's used other places but just that one line of code that says image view and has the source for the logo I need to change that one line, and I'm trying to use either textclock or digitalclock or textview and I just can't figure it out cuz I'm stupid

Categories

Resources