Skip to content

Commit

Permalink
mega rename for spelling mistake...
Browse files Browse the repository at this point in the history
  • Loading branch information
worker8 committed Aug 24, 2018
1 parent 1664fde commit 6878cf4
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beepbeep.accordian_library;
package beepbeep.accordion_library;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand All @@ -21,6 +21,6 @@ public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("beepbeep.accordian_library.test", appContext.getPackageName());
assertEquals("beepbeep.accordion_library.test", appContext.getPackageName());
}
}
2 changes: 1 addition & 1 deletion accordion_library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="beepbeep.accordian_library" />
package="beepbeep.accordion_library" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beepbeep.accordian_library
package beepbeep.accordion_library

import android.view.ViewGroup

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beepbeep.accordian_library
package beepbeep.accordion_library

import android.content.Context
import android.support.constraint.ConstraintLayout
Expand Down
2 changes: 1 addition & 1 deletion accordion_library/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">accordian_library</string>
<string name="app_name">accordion_library</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package beepbeep.accordian_library;
package beepbeep.accordion_library;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import android.view.View
import android.view.ViewGroup
import beepbeep.accordionView.DataModel
import beepbeep.accordionView.R
import beepbeep.accordian_library.AccordionAdapter
import beepbeep.accordian_library.AccordionView
import beepbeep.accordion_library.AccordionAdapter
import beepbeep.accordion_library.AccordionView
import kotlinx.android.synthetic.main.row_content.view.*
import kotlinx.android.synthetic.main.row_title.view.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import beepbeep.accordionView.DataModel
import beepbeep.accordionView.R
import kotlinx.android.synthetic.main.activity_accordian.*
import kotlinx.android.synthetic.main.activity_random_fact.*

class RandomFactActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_accordian)
setContentView(R.layout.activity_random_fact)
val adapter = RandomAdapter(listOf(
DataModel("Zombie Facts", "In Haitian folklore, a zombie (Haitian French: zombi, Haitian Creole: zonbi) is an animated corpse raised by magical means, such as witchcraft. The concept has been popularly associated with the religion of voodoo, but it plays no part in that faith's formal practices."),
DataModel("Mariana Trench", "The Mariana Trench or Marianas Trench, located in the western Pacific Ocean approximately 200 kilometres east of the Mariana Islands, is the deepest point in the world's oceans."),
DataModel("Broccoli Facts", "It has been eaten there since the time of the ancient Romans in the 6th Century BC. 2. Broccoli is a member of the cabbage family, making it a cruciferous vegetable. It's name is derived from the Italian word broccolo, meaning the flowering top of a cabbage."),
DataModel("Llama Facts", "The llama is a domesticated South American camelid, widely used as a meat and pack animal by Andean cultures since the Pre-Columbian era."),
DataModel("Turtle Facts", "Turtles have a hard shell that protects them like a shield, this upper shell is called a 'carapace'. Turtles also have a lower shell called a 'plastron'. Many turtle species (not all) can hide their heads inside their shells when attacked by predators. Turtles have existed for around 215 million years.")
))
accordian_view.adapter = adapter
accordian_view.updatePosition(3)
accordion_view.adapter = adapter
accordion_view.updatePosition(3)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<beepbeep.accordian_library.AccordionView
android:id="@+id/accordian_view"
<beepbeep.accordion_library.AccordionView
android:id="@+id/accordion_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@color/md_white_1000"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="app_name">Accordian View</string>
<string name="app_name">Accordion View</string>
<string name="hello_world">Hello World</string>
<string name="arrow_up_symbol">▲</string>

Expand Down

0 comments on commit 6878cf4

Please sign in to comment.