feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
04/30/14 05:44 AM (10 years ago)

Scringo sidebar button for android

Hey everyone Im trying to set up the side bar button for android. The scringo documentation says this. Where should I add this code? Adding Scringo's sidebar to your window is done as follow: scringo.addSidebar(); This will add Scringo's menu as a sidebar and will handle the swipe gestures to open/close the sidebar. In addition, you can add a button to open and close the sidebar. <com.scringo.ScringoLeftRibbonButton android:id="@+id/activationLeft" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="350dp" /> Or, alternatively, if it’s a button on a title bar or an action bar you can use: <com.scringo.ScringoLeftActivationButton android:id="@+id/activationLeft" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="350dp" /> And in the source code call: ((ScringoActivationButton) findViewById(R.id.activationLeft)).setScringo(scringo);
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/30/14 05:55 AM (10 years ago)
Following. .. ;-)
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/30/14 08:35 AM (10 years ago)
So did you get it working? LA
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/06/14 08:35 PM (10 years ago)
Im going to try this soon. I think if you try the second way you have to call the code like this: ((ScringoActivationButton) thisScreensView.findViewById(R.id.activationLeft)).setScringo(scringo); referencing it to this screens view
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
05/06/14 08:43 PM (10 years ago)
Your semester tests must have finished :-)
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
05/07/14 01:28 AM (10 years ago)
I still have a ton of grading to do! But I still want to get this working. When I tried adding the XML code I get errors. I'll try again and post.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
05/07/14 07:12 AM (10 years ago)
I can never get Scringo to work! LA
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/07/14 03:46 PM (10 years ago)
Cool I have one test left to go next week
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/20/14 06:47 PM (9 years ago)
the ribbon button works but you cant put buttons on nav bar of android anymore.just paste the ribbon xml into activity_host.xml right under frame layout
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.